import request from '@/utils/request'

// 获取验证码图片
// params = {type = 'login' / 'sendsms}
// http://119.91.150.211:8080/heimamm/public/captcha?type=login
export function getCaptchaAPI (params) {
  return request({
    url: '/captcha',
    noToken: true
    // responseType: 'blob',
    // params
  })
}

// 用户登录
export function postLoginAPI (data) {
  return request({
    url: '/login',
    method: 'post',
    noToken: true,
    data
  })
}
